package cn.usbtg.common.idmanager.formater;

/**
 * 常量格式化器：
 * 获得一个常量
 */
public class ConstantFormater extends BasicFormater {
    protected String constant;

    public ConstantFormater(String constant) {
        this.constant = constant;
    }

    @Override
    public String next(Object... params) {
        return super.last = constant;
    }

    public String getConstant() {
        return constant;
    }

    public void setConstant(String constant) {
        this.constant = constant;
    }
}